package me.fung.rem.app

import me.fung.keen.app.nav.HOME
import me.fung.keen.app.nav.nav
import me.fung.rem.app.auth.ModifyPassword
import me.fung.rem.app.auth.PAGE_MODIFY_PASSWORD
import me.fung.rem.app.content.ContentView
import me.fung.rem.app.content.PAGE_REM_CONTENT
import me.fung.rem.app.main.MainView
import me.fung.rem.app.rem_editor.RemEditorView
import me.fung.rem.app.rem_editor.PAGE_REM_EDITOR
import me.fung.rem.app.settings.PAGE_SETTINGS
import me.fung.rem.app.settings.PAGE_TAG_VIEW
import me.fung.rem.app.settings.SettingsView
import me.fung.rem.app.settings.TagView
import me.fung.rem.bean.repo.RemItem

var navigation = nav {
    HOME {
        MainView()
    }
    PAGE_REM_CONTENT {
        ContentView()
    }
    PAGE_REM_EDITOR {
        RemEditorView(it.firstOrNull() as RemItem?)
    }
    PAGE_SETTINGS {
        SettingsView()
    }
    PAGE_MODIFY_PASSWORD {
        ModifyPassword()
    }
    PAGE_TAG_VIEW {
        TagView()
    }
}

